Pick up default selection color on OSX when user defaults are not set.
authorJan D. <jan.h.d@swipnet.se>
Sat, 28 Sep 2013 10:01:50 +0000 (12:01 +0200)
committerJan D. <jan.h.d@swipnet.se>
Sat, 28 Sep 2013 10:01:50 +0000 (12:01 +0200)
commit9baa8ae0d23538089a16c33b5c3c9e2d0eb1513d
tree02ca0d0f9d9ee71e89886e9fd56bc1373039a7e1
parent1d52f3f1839279b765fc6045d47ef39a2193abcc
Pick up default selection color on OSX when user defaults are not set.

* lisp/faces.el (region): Change ns_selection_color to
ns_selection_fg_color, add ns_selection_bg_color.

* src/nsterm.h (NS_SELECTION_BG_COLOR_DEFAULT): Renamed from
NS_SELECTION_COLOR_DEFAULT.
(NS_SELECTION_FG_COLOR_DEFAULT): New.

* src/nsterm.m (ns_selection_color): Remove.
(ns_get_color): Check for ns_selection_(fg|bg)_color using
NSColor selectedText(Background)Color.  Only for COCOA.
(ns_term_init): Remove assignment of ns_selection_color, logic
moved to ns_get_color.
lisp/ChangeLog
lisp/faces.el
src/ChangeLog
src/nsterm.h
src/nsterm.m